{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/addContent.css?random={extendSetting('random')}">
<div class="addcontent">
    <form class="ajaxForm" method="post">
        <input type="hidden" name="_method" value="post">
        <table class="table">
            <tr>
                <td class="tl">
                    <span><strong>* </strong>广告位名称</span>
                </td>
                <td>
                    <input class="long" type="text" name="name" value="">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>位置</span>
                </td>
                <td>
                    <input class="long index" type="text" name="index" value="">
                    <select onchange="changeIndex(this)" class="midium">
                        <option value="">请选择</option>
                        <option value="ad_index">首页轮播(ad_index)</option>
                        <option value="ad_index_right">首页轮播右侧(ad_index_right)</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>广告位宽度</span>
                </td>
                <td>
                    <input class="midium long" type="number" name="height" value="200">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>广告位高度</span>
                </td>
                <td>
                    <input class="midium long" type="number" name="width" value="100">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong>&nbsp;&nbsp;&nbsp;</strong>状态</span>
                </td>
                <td>
                    <p class="article-status" name="status">
                    <div>
                        <input name="status" value="1" type="radio" checked>开启
                        <input name="status" value="2" type="radio">关闭
                    </div>

                    </p>
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong>&nbsp;&nbsp;&nbsp;</strong>显示方式</span>
                </td>
                <td>
                    <p class="article-status" name="fashion">
                    <div>
                        <input name="fashion" value="1" type="radio" checked>轮显
                        <input name="fashion" value="2" type="radio">随机
                    </div>
                    </p>
                </td>
            </tr>
        </table>
    </form>
    <div class="ltcms-button">
        <button class="btns submit ajaxBtn" type="button" data-submit-url="{LTCMS_ROUTE_PREFIX}/adPosition" data-form=".ajaxForm" data-location-url="{LTCMS_ROUTE_PREFIX}/adPosition/index" data-close="5">
            确认添加
        </button>
        <button class="btns cancel">取消并返回</button>
    </div>
</div>
<script>
    function changeIndex(obj){
        $(".index").val($(obj).val());
    }
</script>
<script src="__ADMIN_STATIC__/js/addContent.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}